Skip to content

Improve matcopy interface - #4306

Merged
martin-frbg merged 1 commit into
OpenMathLib:developfrom
angsch:develop
Nov 11, 2023
Merged

martin-frbg merged 1 commit into
OpenMathLib:developfrom
angsch:develop

Conversation

@angsch

@angsch angsch commented Nov 11, 2023

Copy link
Copy Markdown
Contributor

For most (all?) BLAS routines, matrices with zero-sized dimensions are valid inputs. [i,o]matcopy, however, stops with parameter number X has an illegal value when rows = 0 or cols = 0. This commit

  • allows matrices where the row or column count is zero (xerbla/info is no longer triggered)
  • adds a quick return path when at least one matrix dimension is zero
  • introduces the BLAS/LAPACK convention that the leading dimensions must be at least 1 (ie lda = 0, rows = 0 is illegal)

* rows = 0 or cols = 0 is now a legal input and
  takes quick return path
* Follow BLAS/LAPACK convention that the leading
  dimensions must be at least 1.
@martin-frbg martin-frbg added this to the 0.3.25 milestone Nov 11, 2023
@martin-frbg
martin-frbg merged commit 00ef1bb into OpenMathLib:develop Nov 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants